#include<bits/stdc++.h>
using namespace std;

int n;
int num[100050];
int d;

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;++i){
        cin>>num[i];
    }
    sort(num+1,num+n+1);
    d=0;
    for(int i=2;i<=n;++i){
        if(num[i]>num[d+1]){
            ++d;
        }
    }
    cout<<n-d<<'\n';
    return 0;
}
